fixed problem with beginl