added update block
fixed built in function compilation