removed unnecessary begin-end