Bandgap opening in graphene